import { ILocalHttp } from "./ILocalHttp";


export abstract class LocalHttpProto {
    protected _service: ILocalHttp

    setService(s: ILocalHttp) {
        this._service = s;
    }

    get service() {
        return this._service;
    }

    abstract action(param: any, callback: (code: number, data?: any) => void): void


    push(reqName: string, retData: any) {
        this.service.push(reqName, retData);
    }
}